package com.mo.common.persistence.model;

import java.beans.Transient;
import java.io.Serializable;
import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.mo.config.properties.MoProperties;


public class OttImage extends Model<OttImage> {
//	@Autowired
//	MoProperties MoProperties;
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Integer id;//操作员ID
	
	private String fileFormat;//格式
	
	private long size;//大小
	
	private String showName;//物料名称，上传原始文件名称,用于展示
	
	private String fileName;//物料名称，上传原始文件名称
	
	private long compressSize;//压缩后的大小
	
	private String compressName;//物料名称，上传原始文件名称
	
	private String filePath;//文件上传后完整访问路径
	
	private String resolution;//分辨率
	
	private Integer status;//1：正常 2：禁用删除
	
	private Integer topLevel;//1：正常 2：父ID
	
	private Integer userId;//操作员ID
	@TableField(exist = false)
	private String createUserName;//操作员名称
	
	private Date createTime;//
	
	private Date modifyTime;//

	
	public long getCompressSize() {
		return compressSize;
	}

	public void setCompressSize(long compressSize) {
		this.compressSize = compressSize;
	}

	public String getCompressName() {
		return compressName;
	}

	public void setCompressName(String compressName) {
		this.compressName = compressName;
	}

	public long getSize() {
		return size;
	}

	public void setSize(long size) {
		this.size = size;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public Integer getTopLevel() {
		return topLevel;
	}

	public void setTopLevel(Integer topLevel) {
		this.topLevel = topLevel;
	}	
	@JsonProperty
	@Transient
	public String getCreateUserName() {
		return createUserName;
	}

	@Transient
	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}
  
	public String getResolution() {
		return resolution;
	}

	public void setResolution(String resolution) {
		this.resolution = resolution;
	}

	public String getFileFormat() {
		return fileFormat;
	}

	public void setFileFormat(String fileFormat) {
		this.fileFormat = fileFormat;
	}
	
	public String getShowName() {
		return showName;
	}

	public void setShowName(String showName) {
		this.showName = showName;
	}
	
	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}
	
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}


	
}
